<div *ngIf="!result.data || result.data.length == 0">
  <nz-empty [nzNotFoundFooter]="footerTpl">
    <ng-template #footerTpl>
      <button nz-button nzType="primary" routerLink="/process/create">创建流程</button>
    </ng-template>
  </nz-empty>
</div>

<div *ngIf="result.data && result.data.length > 0">
  <nz-table #basicTable [nzData]="result.data" [nzFrontPagination]="false" [nzShowPagination]="true"
            [nzTotal]="result.count" [nzPageIndex]="param.firstResult / param.maxResults + 1" [nzSimple]="true"
            [nzPageSize]="param.maxResults" (nzPageIndexChange)="changePage($event)" [nzHideOnSinglePage]="true">
    <thead>

    <tr>
      <th>Name</th>
      <th>Key</th>
      <th>DeploymentId</th>
      <th>Version</th>
      <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of basicTable.data">
      <td>{{ data.name }}</td>
      <td>{{ data.key }}</td>
      <td>{{ data.deploymentId }}</td>
      <td>{{ data.version }}</td>
      <td>
        <a nz-popconfirm nzPopconfirmTitle="确认要删除吗?删除后将无法恢复。" (nzOnConfirm)="delete(data.key)">删除</a>
      </td>
    </tr>
    </tbody>
  </nz-table>
</div>
